export default function (
    value: any,
    option: {
        emptyString: boolean | undefined,
        zeroNumber: boolean | undefined
    } = {
        emptyString: false,
        zeroNumber: false
    }) {
    if (value === null || value === undefined) {
        return !((option.emptyString && value === "") || (option.zeroNumber && value === 0));
    }

    return false;
}
